<script>
export default {
  name: "MyCar",
  data() {
    return {
      name: "法拉利",
      price: 2000000
    }
  }
}
</script>

<template>
  <div>
    车名:<span>{{ name }}</span><br>
    价格:<span>{{ price }}</span>
  </div>
</template>

<style scoped>
span {
  color: red;
  font-size: 20px;
}
</style>